package com.blacksea.authserver.model;

import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.Date;

/**
 * OperationLog
 *
 * @author blacksea3(jxt) 2021/4/18 15:17
 */
@Getter
@Setter
@NoArgsConstructor
public class OperationLog {
    // 日志创建时间
    private Date createTime;

    // 方法名
    private String method;

    // 参数
    private String args;

    // 方法运行时间ms
    private Long runTime;

    // 返回值
    private String returnValue;

    @Override
    public String toString() {
        return "操作日志: " + "|CT:" + createTime + " "
            + "|RT:" + runTime + " "
            + "|MT:" + method + " "
            + "|PA:" + args + " "
            + "|RV:" + returnValue;
    }
}
